package cn.edu.hpu.jie.services;

import cn.edu.hpu.jie.dao.LogDao;
import cn.edu.hpu.jie.entity.Log;

public class LogService {
	private LogDao dao = new LogDao();
	
	public int insertLog(Log l) {
		return dao.insertLog(l);
	}
	
	public int addLog(int eventid, int loginid, String desc, String time) {
		
		Log l = new Log();
		l.setDesc(desc);
		l.setEventid(eventid);
		l.setLoginid(loginid);
		l.setTime(time);
		
		return insertLog(l);
	}
}
